{extend name="shop/showstore/common/store_layout" /}
{block name="content"}

<?php 
//加载店铺装修静态页
if(isset($decoration_file)) { 
    require($decoration_file);
} 
?>
<?php if(!$store_decoration_only) {?>
<div class="wrapper" style="width:100%; margin:0 auto; text-align:center">
	<div class="flexslider">
      <ul class="slides">
        <?php if(!empty($store_slide) && is_array($store_slide)){?>
        <?php for($i=0;$i<5;$i++){?>
        <?php if($store_slide[$i] != ''){?>
        <li><a style="background: url('__UPLOAD_PATH__/shop/store/slide/{$store_slide[$i]}') no-repeat center center;" <?php if($store_slide_url[$i] != '' && $store_slide_url[$i] != 'http://'){?>href="<?php echo $store_slide_url[$i];?>"<?php }?>></a></li>
        <?php }?>
        <?php }?>
        <?php }else{?>        
        <li><a style="background:url('__UPLOAD_PATH__/shop/store/slide/f01.jpg') no-repeat center center;" href="javascript:;"></a></li>
        <li><a style="background: url('__UPLOAD_PATH__/shop/store/slide/f02.jpg') no-repeat center center;" href="javascript:;"></a></li>
        <li><a style="background: url('__UPLOAD_PATH__/shop/store/slide/f03.jpg') no-repeat center center;" href="javascript:;"></a></li>
        <li><a style="background: url('__UPLOAD_PATH__/shop/store/slide/f04.jpg') no-repeat center center;" href="javascript:;"></a></li>
        <?php }?>
      </ul>
    </div>
</div>  

<div class="jianJie">
    <div class="container">
        <div class="jJ-left">
            <h2>简介</h2>
        </div>
        <div class="jJ-right">
            <p>{$store_info['store_description']}</p>
        </div>
    </div>
</div>

<!--背景图一-->
<?php if(!empty($store_bg[0])){?>
	<div class="goods-block" style="background: url('__UPLOAD_PATH__/shop/store/slide/{$store_bg[0]}') no-repeat;">
<?php }else{?>
	<div class="goods-block" style="background: url('__SHOP_DEFAULT__/store/style/style1/images/block-Bg4.jpg') no-repeat;">
<?php }?>

    <div class="classify">
        <ul>
        	{if ($store_goods_class)}
				{volist name="store_goods_class" id="vo"}
					<li>
					 	<a href="{:url('shop/Showstore/goods_all',array('store_id'=>$vo['store_id'],'stc_id'=>$vo['stc_id']))}">
					 		<img src="__SHOP_DEFAULT__/store/style/style4/images/classify-icon.png">{$vo['stc_name']}
					 	</a>
					</li>
				{/volist}
			{/if}
        </ul>
        <div class="clearfix"></div>
    </div>
    <div class="blcok-title">
    	<img src="__SHOP_DEFAULT__/store/style/style4/images/block-title1.png" style="width:100%" alt="">
    </div>
    <div class="container">
        <div class="blcok-title">
            <div class="reXiao">
            	<!--背景图二-->
				<?php if(!empty($store_bg[1])){?>
					<img src="__UPLOAD_PATH__/shop/store/slide/{$store_bg[1]}">
				<?php }else{?>
					<img src="__SHOP_DEFAULT__/store/style/style4/images/chaD-zhenDian.png" alt="">
				<?php }?>
            	
            </div>
        </div>
    </div>
    <div class="container">
        <div class="line1">
        	<!--广告一-->
        	<?php if(!empty($store_adv[0])){?>
				<a href="{$store_adv_url[0]}">
					<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[0]}">
				</a>
			<?php }else{?>
				<a href="#">
					<img src="__SHOP_DEFAULT__/store/style/style4/images/store-banner3.jpg" alt="">
				</a>
			<?php }?>
        </div>

        <div class="goods-one">
            <ul>
            	{volist name="town_goods_list" id="vo" length='6'}
	            	<li>
	                    <a href="{:url('shop/Goods/index',array('goods_id'=>$vo['goods_id']))}" title="{$vo['goods_name']}">
	                        <div class="goods-img"><img src="{:cthumb($vo['goods_image'], 240,$vo['store_id'])}"></div>
	                        <h3>{$vo['goods_name']}</h3>
	                        <span>{$vo['goods_jingle']}</span>
                            <h3>价格:{$vo['goods_price']}</h3>
	                    </a>
	               	</li>
				{/volist}
            </ul>
            <div class="clearfix"></div>
        </div>
    </div>
<img src="__SHOP_DEFAULT__/store/style/style4/images/block-title1.png" alt="" style="width:100%"> 
    <div class="container">
        <div class="blcok-title">
            <div class="reXiao">
            	<!--背景图三-->
				<?php if(!empty($store_bg[2])){?>
					<img src="__UPLOAD_PATH__/shop/store/slide/{$store_bg[2]}">
				<?php }else{?>
					<img src="__SHOP_DEFAULT__/store/style/style4/images/chaD-xinPin.png" alt="">
				<?php }?>
            	
            </div>
        </div>
        <div class="line1">
        	<!--广告二-->
        	<?php if(!empty($store_adv[1])){?>
				<a href="{$store_adv_url[1]}">
					<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[1]}">
				</a>
			<?php }else{?>
				<a href="#">
					<img src="__SHOP_DEFAULT__/store/style/style4/images/store-banner4.jpg" alt="">
				</a>
			<?php }?>
        </div>
        <div class="goods-two">
            <div class="goods-left">
                <div class="left-img">
                	<!--广告三-->
                	<?php if(!empty($store_adv[2])){?>
						<a href="{$store_adv_url[2]}">
							<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[2]}">
						</a>
					<?php }else{?>
						<a href="#">
							<img src="__SHOP_DEFAULT__/store/style/style4/images/left-guangG2.jpg" alt="">
						</a>
					<?php }?>
                </div>
            </div>
            <div class="goods-right">
                <div class="two-row">
                	{volist name="new_goods_list" id="vo" length='2'}
                		{if ($i == 1)}
	                		<a class="pull-left" href="{:url('shop/Goods/index',array('goods_id'=>$vo['goods_id']))}" title="{$vo['goods_name']}">
	                   	{else /}
	                   		<a class="pull-right" href="{:url('shop/Goods/index',array('goods_id'=>$vo['goods_id']))}" title="{$vo['goods_name']}">
	                   	{/if}
	                   
	                   		<div class="goods-img"><img src="{:cthumb($vo['goods_image'], 240,$vo['store_id'])}"></div>
	                        <h3>{$vo['goods_name']}</h3>
                            <span>{$vo['goods_jingle']}</span>
                            <h3>价格:{$vo['goods_price']}</h3>
	                        
	                   </a>
					{/volist}
                </div>
                <div class="clearfix"></div>
                <div class="one-row">
                	<!--广告四-->
                	<?php if(!empty($store_adv[3])){?>
						<a href="{$store_adv_url[3]}">
							<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[3]}">
						</a>
					<?php }else{?>
						<a href="#">
							<img src="__SHOP_DEFAULT__/store/style/style4/images/goods-img2.jpg" alt="">
						</a>
					<?php }?>
                </div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
<img src="__SHOP_DEFAULT__/store/style/style4/images/block-title1.png" alt="" style="width:100%">
    <div class="container">
        <div class="blcok-title">
            <div class="reXiao">
            	<!--背景图四-->
				<?php if(!empty($store_bg[3])){?>
					<img src="__UPLOAD_PATH__/shop/store/slide/{$store_bg[3]}">
				<?php }else{?>
					<img src="__SHOP_DEFAULT__/store/style/style4/images/chaD-reXiao.png" alt="">
				<?php }?>
            	
            </div>
        </div>
        <div class="line1">
        	<!--广告五-->
        	<?php if(!empty($store_adv[4])){?>
				<a href="{$store_adv_url[4]}">
					<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[4]}">
				</a>
			<?php }else{?>
				<a href="#">
					<img src="__SHOP_DEFAULT__/store/style/style4/images/store-banner5.jpg" alt="">
				</a>
			<?php }?>
        </div>
        <div class="guanG-img">
            <div class="img-left">
            	<!--广告六-->
	        	<?php if(!empty($store_adv[5])){?>
					<a href="{$store_adv_url[5]}">
						<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[5]}">
					</a>
				<?php }else{?>
					<a href="#">
						<img src="__SHOP_DEFAULT__/store/style/style4/images/guangGao-1.jpg" alt="">
					</a>
				<?php }?>
            </div>
            <div class="img-right">
            	<!--广告七-->
	        	<?php if(!empty($store_adv[6])){?>
					<a href="{$store_adv_url[6]}">
						<img src="__UPLOAD_PATH__/shop/store/slide/{$store_adv[6]}">
					</a>
				<?php }else{?>
					<a href="#">
						<img src="__SHOP_DEFAULT__/store/style/style4/images/guangGao-2.jpg" alt="">
					</a>
				<?php }?>
            </div>
            <div class="clearfix"></div>
        </div>

        <div class="shouCang">
        	<a href="javascript:collect_store('<?php echo $store_info['store_id'];?>','count','store_collect')">
        		<img src="__SHOP_DEFAULT__/store/style/style4/images/bottom-shouC.png" alt="">
        	</a>
        </div>
        <div class="toTop">
        	<a href="#">
        		<img src="__SHOP_DEFAULT__/store/style/style4/images/toTop4.png" alt="">
        	</a>
        </div>
    </div>

</div>
  

		


<!-- 引入幻灯片JS --> 
<script type="text/javascript" src="__SITE_RESOURCE__/js/jquery.flexslider-min.js"></script> 
<!-- 绑定幻灯片事件 --> 
<script type="text/javascript">
	$(window).load(function() {
		$('.flexslider').flexslider();


	    // 图片切换效果
	    $('.goods-thumb-scroll-show').find('a').mouseover(function(){
	        $(this).parents('li:first').addClass('selected').siblings().removeClass('selected');
	        var _src = $(this).find('img').attr('src');
	        _src = _src.replace('_60.', '_240.');
	        _src = _src.replace('-60', '-240');
	        $(this).parents('dt').find('.goods-thumb').find('img').attr('src', _src);
	    });
	});
</script>
<?php } ?>
	
{/block}
